<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>JavaScript Class Test</title>
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript">
/*
	var aCD = {title: "wonder girls", artist: "park jin young", location:3};
	console.log(aCD.title);
	console.log(aCD.artist);
	console.log(aCD.location);
	console.log(aCD);
*/
/*
function Mammal() {
	this.age = 10;
	Mammal.prototype.eat = function() {
		console.log("Mammal eat 메서드");
	}
}

function Human() {
	this.age = 2;
}
Human.prototype = new Mammal();
Human.prototype.eat = function() {	// 메서드 재정의 (override)
	console.log("Human eat 메서드");
}

function Ape() {
	this.age = 5;
}
Ape.prototype = new Mammal();
*/
</script>
</head>
<body>
	<div id="lstEmployees">
		<ul>
			<li id="1">홍길동</li>
			<li id="2">심청</li>
			<li id="3">콩쥐</li>
		</ul>
	</div>
</body>
</html>





















